<style type="text/css">
* {
	font-family: Verdana, Geneva, sans-serif;
	font-weight: 12px;
}
</style>
<?=form_open(uri_string());?>
<?
	$cm_kind = $this->config->item('cm_kind') ; 
?>
<table class="form" width="100%">
    <tr>
        <td class="label">Loại comment</td>
        <td><?=$cm_kind["$rs->kind"]?></td>
    </tr>
    <!--<tr>
        <td class="label" id="kind_id">Object Name :</td>
        <td id="kind_name"></td>
    </tr>-->
    <tr>
        <td class="label"><?=lang('content');?></td>
        <td><?=$rs->lb_comment;?></td>
    </tr>
    <tr>
        <td class="label">Thời gian</td>
        <td><?//=$rs->dt_time;?></td>
    </tr>
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td>
            <?php 
			if($rs->bl_active==1) echo 'Kích hoạt' ;
					else echo 'Chưa kích hoạt'; ?>
        </td>
    </tr>
    <tr>
        <td class="label">Ngày gởi :</td>
        <td>
            <?=date('d/m/Y H:i', strtotime($rs->dt_create))?>
        </td>
    </tr>
    <tr>
        <td class="label"></td>
        <td class="footer"><!--<input type="submit" name="bt_submit" class="capnhat">--></td>
    </tr>
</table>
<?=form_close();?>
<script language="javascript">
$(document).ready(function(e){
	var kind = '<?=$rs->cm_kind?>' ;
	var obj_id = '<?=$rs->obj_id;?>' ;
	if(kind==3)
		var url = '<?=base_url();?>show/get_song_id/'+ obj_id;
	if(kind==2)
		var url = '<?=base_url();?>show/get_show_id/'+ obj_id;
	else if(kind==1)
		var url = '<?=base_url();?>mod_news/news/get_news_id/'+ obj_id;
		
    $.post(url,{id:obj_id,},function(res){
		$('#kind_id').html('Object Name :');
		$('#kind_name').html(res.name);
	},'json');
});
</script>